package org.wang.generalcode.modules.sys.pojo.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author wangchong
 */
@Data
@Schema(description = "菜单管理")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouteVO {
    private static final long serialVersionUID = 1L;

    @Schema(description = "路由路径", example = "user")
    private String path;

    @Schema(description = "组件路径", example = "system/user/index")
    private String component;

    @Schema(description = "跳转链接", example = "https://www.youlai.tech")
    private String redirect;

    @Schema(description = "路由名称")
    private String name;

    @Schema(description = "路由属性")
    private MetaVO meta;

    @Schema(description = "子路由列表")
    private List<RouteVO> children;
}
